const KoaRouter = require("@koa/router");
const BlogController = require("../controller/blogs.controller.js");
const tagController = require("../controller/tag.controller.js");
const settingController = require("../controller/setting.controller.js");

const userRouter = new KoaRouter({ prefix: "/front" });


userRouter.post("/blogs/page", BlogController.page);
userRouter.get("/blogs/detail/:id", BlogController.detail);
userRouter.get("/tag/select", tagController.select);

userRouter.get("/setting/info", settingController.info);
userRouter.get("/setting/focus", settingController.focusBlog);



module.exports = userRouter;
